package com.koocloud.electroplatemanage.controller;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.service.CraftCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program:
 * @description:
 * @author: wjx
 * @create: 2020-11-25 10:00
 */
@RestController
@RequestMapping("/craftCard")
public class CraftCardController {

    @Autowired
    CraftCardService craftCardService;

    @RequestMapping(value = "/selectByWorkOrderNumber",method = RequestMethod.POST,name = "通过工单号查询")
    public ResponseTemplate selectByWorkOrderNumber(@RequestParam("workOrderNumber") String workOrderNumber){
        return craftCardService.selectByWorkOrderNumber(workOrderNumber);
    }
}
